<script type="text/javascript">
jQuery(document).ready(function(){
	jQuery('.customselect').customSelect();
	jQuery('.register_form input[type="text"],.register_form input[type="password"]').focus(function(){
		jQuery(this).parent('p').addClass('pfocus');
	});
	jQuery('.register_form input[type="text"],.register_form input[type="password"]').focusout(function(){
		jQuery(this).parent('p').removeClass('pfocus');
	});
	jQuery('.register_form input[type="text"],.register_form input[type="password"]').mouseover(function(){
		jQuery(this).parent('p').addClass('phover');
	});
	jQuery('.register_form input[type="text"],.register_form input[type="password"]').mouseout(function(){
		jQuery(this).parent('p').removeClass('phover');
	});
	jQuery(".position_main").height(jQuery(window).height());
	jQuery('.content_text').slimScroll({
		height:'500px',
		railVisible: true,
		color:'#646673',
		size:'12px',
		railOpacity: 1,
		alwaysVisible: true
	});
	jQuery('.dieu-khoan').slimScroll({
		height:'350px',
		railVisible: true,
		color:'#646673',
		size:'12px',
		railOpacity: 1,
		alwaysVisible: true
	});
});
</script>
<div class="content">
	<div class="two-column">
		<form class="content_form register_form" action="<?php echo Yii::app()->createUrl('user/create'); ?>" method="POST" enctype="multipart/form-data">
			<div class="one_column left_column">
				<h2>Đăng Ký</h2>
				<p><i>*Hãy sử dụng thông tin thật, bạn nhé!</i></p>
				<p class="input_wrapper"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/front/images/icon_reg_user.png" /><input type="text" id="User_username" name="User[username]" placeHolder="Tên đăng nhập" /></p>
				<p class="input_wrapper"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/front/images/icon_reg_pass.png" /><input type="password" name="password" placeHolder="Mật khẩu" /></p>
				<p class="input_wrapper"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/front/images/icon_reg_email.png" /><input type="text" id="User_email" name="User[email]" placeHolder="Email" /></p>
				<p class="input_wrapper"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/front/images/icon_reg_user_old.png" /><input type="text" name="User[name]" placeHolder="Họ và tên " /></p>
				<p><img src="<?php echo Yii::app()->theme->baseUrl; ?>/front/images/icon_reg_date.png" /><select class="customselect smallselect" name="day">
					<option value="none">Ngày</option>
					<?php for($i = 1 ; $i <= 31; $i++) :?>
						<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
					<?php endfor; ?>
				</select>
				<select class="customselect smallselect" name="month">
					<option value="none">Tháng</option>
					<?php for($i = 1 ; $i <= 12; $i++) :?>
						<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
					<?php endfor; ?>
				</select>
				<select class="customselect mediumselect" name="year">
					<option value="none">Năm sinh</option>
					<?php for($i = 1940 ; $i <= date('Y') - 2; $i++) :?>
						<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
					<?php endfor; ?>
				</select>
			</p>

			<p class="input_wrapper"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/front/images/icon_reg_sex.png" /><label class="sex">Giới Tính</label><label class="label_radio" for="male-check"><input name="User[gender]" value="0" checked id="male-check" type="radio" /> Nam</label><label class="label_radio" for="female-check"><input name="User[gender]" value="1" id="female-check" type="radio" /> Nữ</label></p>
			<p class="input_wrapper"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/front/images/icon_reg_call.png" /><input type="text" name="User[phone]" placeHolder="Số điện thoại" /></p>
			<p><input type="submit" value="Đăng ký" /></p>

		</div>
		<div class="one_column right_column">
			<p><i>Điều khoản sử dụng:</i></p>
			<div class="dieu-khoan"><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
				<br/><br/>
				Sed ut perspiciatis unde omnis iste natus error  voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</p></div>

				<label class="label_check" for="sample-check"><input name="User[rules]" id="sample-check" required value="1" type="radio" /> Tôi đồng ý với điều khoản trên.</label>
			</div>
		</form>
	</div>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/front/js/jquery.validate.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/front/js/validation.js"></script>
</div>